package com.example.teesystem.entity.vo.issue;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/3/31 19:00
 *
 * 题库分页查询
 */
@Data
public class IssueSelectVo {
    @NotNull(message = "值不能为空")
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;//课程id

    @NotNull(message = "值不能为空")
    private Integer trainingExam;

    private String keyWords;

    private Integer difficulty;

    private Integer type;

    private Integer chapterId;

    @Min(value = 1, message = ValidErrorMessage.PAGE_CUR_VALID_FAIL)
    private Integer cur;

    /**
     * 每页个数
     */
    @Min(value = 0, message = ValidErrorMessage.PAGE_CUR_VALID_FAIL)
    private Integer size;
}
